package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.ShopOrder;
import com.antdesignbackend.backend.entity.entityVo.ShopOrderVo;
import com.antdesignbackend.backend.mapper.ShopOrderMapper;
import com.antdesignbackend.backend.service.ShopOrderService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopOrderServiceImpl extends ServiceImpl<ShopOrderMapper, ShopOrder> implements ShopOrderService {
    @Autowired
    private ShopOrderMapper shopOrderMapper;

    @Override
    public List<ShopOrderVo> search(QueryWrapper<ShopOrderVo> queryWrapper, Page<ShopOrderVo> page) {
        return shopOrderMapper.search(queryWrapper, page);
    }
    @Override
    public Integer count(QueryWrapper<ShopOrderVo> queryWrapper) {
        return shopOrderMapper.count(queryWrapper);
    }
}
